import request from "@/utils/request";
import requestmock from "@/utils/request-mock";

/**
 * 发送三级菜单的请求
 * @returns 三级菜单的数据
 */
export const reqGetNav = () => {
  return request.get("/product/getBaseCategoryList");
};

/**
 * 发送获取首页轮播图的请求
 * @returns 首页轮播图的数据
 */
export const reqGetBanners = () => {
  return requestmock.get("/getbanners");
};

/**
 * 发送测试test接口的请求
 * @returns test返回的数据(字符串)
 */
export const reqGetTest = () => {
  return requestmock.get("/test");
};
/**
 * 发送获取floor轮播图的请求
 * @returns floor轮播图的数据
 */
export const reqGetFloor = () => {
  return requestmock({
    method: "GET",
    url: "/getfloor",
  });
};
